package com.zhentao.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * @TableName app_user
 */
@ApiModel(description = "")
@TableName(value ="app_user")
@Data
public class AppUser implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", position = 1)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 微信ID
     */
    @ApiModelProperty(value = "微信ID", position = 2)
    @TableField(value = "open_id")
    private String openId;


    /**
     * 状态 1正常 2删除
     */
    @ApiModelProperty(value = "状态 1正常 2删除", position = 3)
    @TableField(value = "status")
    private Integer status;

    /**
     * 是否实名 1是 2否
     */
    @ApiModelProperty(value = "是否实名 1是 2否", position = 4)
    @TableField(value = "is_authentication")
    private Integer isAuthentication;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名", position = 5)
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", position = 6)
    @TableField(value = "avatar")
    private String avatar;
    /**
     * 最后一次登录时间
     */
    @TableField(value = "last_login_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLoginTime;
    /**
     * 最后一次登录ip
     */
    @TableField(value = "last_login_ip")
    private String lastLoginIp;
    /**
     * 用户信息
     */


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}